package io_0927;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description: 重命名操作
 * Date: 2022-09-28
 * Time: 11:10
 */
public class Demo5 {
    public static void main(String[] args) {
        File srcFile = new File("./aaa.txt");
        File destFile = new File("./bbb.txt");
        srcFile.renameTo(destFile); //将文件名 aaa 改为 bbb
    }
}
